<?php
chdir('../');

require('includes/setUp.php');

if ($user == null)
  globalFunc::redirect(WebRoot.'index.php');

try {

  $auth->logOut();
  
} catch (Exception $ex) {
  globalFunc::redirect(WebRoot.'index.php?errMsg='.rawurlencode($ex->getMessage()));
}

globalFunc::redirect(WebRoot.'index.php');

